package cn.guet.spider.elong.task;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import cn.guet.spider.elong.service.ILongHotelService;

/**
 * 艺龙酒店数据处理
 */
@Component(value = "longTask")
public class LongTask {

    private static final Logger LOGGER = LogManager.getLogger(LongTask.class);

    @Autowired
    @Qualifier(value = "longService")
    private ILongHotelService longService;

    public void execute() throws Exception {
        LOGGER.info(longService.selectOneById(80).getName());
    }
}
